package com.igeekhome.biz.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.igeekhome.pojo.WorkloadStatistics;
import com.igeekhome.dao.WorkloadStatisticsMapper;
import com.igeekhome.biz.IWorkloadStatisticsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 工作量统计 服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-03-16
 */
@Service
public class WorkloadStatisticsServiceImpl extends ServiceImpl<WorkloadStatisticsMapper, WorkloadStatistics> implements IWorkloadStatisticsService {

    @Override
    public int getToMe(QueryWrapper qw) {
        if(qw==null){
            qw=new QueryWrapper();
        }
        return this.baseMapper.gettome(qw);
    }

    @Override
    public int getToSeCount(QueryWrapper qw) {
        if(qw==null){
            qw=new QueryWrapper();
        }
        return this.baseMapper.gettosecount(qw);
    }

    @Override
    public int getToEff(QueryWrapper qw) {
        if(qw==null){
            qw=new QueryWrapper();
        }
        return this.baseMapper.gettoeff(qw);
    }

    @Override
    public int getToEnd(QueryWrapper qw) {
        if(qw==null){
            qw=new QueryWrapper();
        }
        return this.baseMapper.gettoendse(qw);
    }

    @Override
    public int getToSeTime(QueryWrapper qw) {
        if(qw==null){
            qw=new QueryWrapper();
        }
        return this.baseMapper.gettosetime(qw);
    }
}
